package com.theydream.ichingwisdom.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;

import com.theydream.ichingwisdom.R;
import com.theydream.ichingwisdom.tab.TabHostProvider;
import com.theydream.ichingwisdom.tab.TabView;
import com.theydream.ichingwisdom.tab.TabbarView;

public class Author extends Activity {
	private TabHostProvider tabProvider;
	private TabView tabView;
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		tabProvider = new TabbarView(this);
		tabView = tabProvider.getTabHost("main");
		tabView.setCurrentView(R.layout.author);
		View view=tabView.render(1);
		//TextView mallName=(TextView) view.findViewById(R.id.txtTitle);
		//mallName.setText(GlobalData.getInstance().getMall_name());
		setContentView(view);
		
		
		
		
		
		WebView wv;
		wv = (WebView) findViewById(R.id.wv);
		wv.setBackgroundColor(0x00000000);
		wv.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
		wv.getSettings().setSupportZoom(false);
		wv.loadUrl("file:///android_asset/html/albert.html");
		//TextView btnAboutUs=(TextView) findViewById(R.id.AboutUs);

//		btnAboutUs.setOnClickListener(new OnClickListener() {
//			public void onClick(View v) {
//				startActivity(new Intent(Author.this,AboutUs.class));
//			}
//		});
//		btnTerms.setOnClickListener(new OnClickListener() {
//			public void onClick(View v) {
//				startActivity(new Intent(Author.this,TermAndCond.class));
//			}
//		});
		
	}
	
			
	

	public void onResume()
	{
		super.onResume();
//		FlurryAgent.logEvent("0.Author");
	}

}
